package com.tansun.easycare.rule.rulegroup.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.tansun.easycare.rule.rulegroup.entity.RuleEntry;
import com.tansun.easycare.rule.rulegroup.entity.RuleGroup;
import com.tansun.easycare.rule.rulemange.entity.RuleManage;

public class RuleSetVO implements Serializable{

    /**
	 * 
	 */
	private static final long serialVersionUID = 4131290363248087588L;
	/**
	 * 当前规则集信息
	 */
	private RuleManage ruleManage;
	/**
	 * 当前条目信息
	 */
    private RuleEntry ruleEntry;
    
    /**
     * 当前规则信息，使用RuleGroup 但是里面存放ruleManage 信息
     */
    private List<RuleGroup> rules;
    
    /**
     * 对应List<RuleSetExpressVO> 字符串
     */
    private String conditions;


    public RuleManage getRuleManage() {
        return ruleManage;
    }

    public void setRuleManage(RuleManage ruleManage) {
        this.ruleManage = ruleManage;
    }

    public List<RuleGroup> getRules() {
    	if(rules==null)
    		rules = new ArrayList<>();
        return rules;
    }

    public void setRules(List<RuleGroup> rules) {
        this.rules = rules;
    }

	public RuleEntry getRuleEntry() {
		return ruleEntry;
	}

	public void setRuleEntry(RuleEntry ruleEntry) {
		this.ruleEntry = ruleEntry;
	}

	public String getConditions() {
		return conditions;
	}

	public void setConditions(String conditions) {
		this.conditions = conditions;
	}


	



}
